var ShareLayer = cc.LayerColor.extend({
    ctor : function () {
        this._super(cc.color(0,0,0,128));
        this.init();
    },
    init : function () {
        var size = cc.director.getVisibleSize();

        var sprite = new cc.Sprite(res.Arrow_png);
        sprite.setAnchorPoint(1,1);
        sprite.setPosition(size.width-10,size.height-10);
        this.addChild(sprite);

        var label = new cc.LabelTTF("单击选择分享朋友圈",  'Times New Roman', 20);
        label.textAlign = cc.LabelTTF.TEXT_ALIGNMENT_LEFT;
        label.setPosition(-sprite.width/4,-sprite.height/4);
        sprite.addChild(label);

        cc.eventManager.addListener({
            event: cc.EventListener.TOUCH_ONE_BY_ONE,
            swallowTouches: true,
            onTouchBegan: function (touch, event) {
                return this.isVisible();
            }.bind(this),
            onTouchEnded: function (touch, event) {
                    mainLayer.removeChild(this);
            }.bind(this)
        },this);
    }
});